package cms.mager.mapper;

import cms.common.Constant;
import cms.common.PageData;
import cms.mager.domain.Customer;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @ClassName: CostumerMapper.java
 * @author: yuhui
 * @version: 1.0.0
 * @Description: TODO
 * @createTime: 2021年04月15日 01:24:00
 */
public interface CustomerMapper {
    /*1、分页查询*/
    public List<Customer> pageCustomer(@Param("customer") Customer customer);

    /*2、添加客户*/
    public int addCustomer(@Param("customer") Customer customer);

    /*3、更新客户信息*//*[就更手机号吧]*/
    public int updateInfo(@Param("customer") Customer customer);

    /*4、删除客户信息*/
    public int delCustormer(@Param("id") int id);

    /*5、根据手机号查询客户id*/
    public int findCustomerByPhone(@Param("phone") String phone);

    /*6.给多个客户分配业务员*/
    public int updateUser(@Param("cids") String[] cuIds,@Param("uid") String userId);
}
